<div class="adtb medium-12 column" style="padding:0;">
<table class="" cellspacing='0' style="width:100%;">
	<thead>
		<tr>
			<th><?=sizeof($suggested)?> Suggestions</th>
			<th>User</th>
			<th>Date Suggested</th>
            <th>Details</th>
			<th class="text-center">Action</th>
		</tr>
	</thead>
    
	<tbody>
	<?php foreach ($suggested as $value) { ?>
    <tr>
			<td><a class="link"><?=$value->ci->name?></a></td>
			<td><a><?=UserAccountTb::getFullname($value->cis->suggestor_id)?></a></td>
            <td>
                <?php 
                $date = new DateTime($value->cis->date_created,new DateTimeZone("Asia/Hong_Kong"));
                echo $date->format('F d, Y | h:i:s A');
                ?>
            </td>
            <td width="40%">
                <?php
               
                    if(!empty($value->cis->name))
                    {
                        echo "Name: ".$value->cis->name."<br>";
                        
                    }
                    if(!empty($value->cis->about))
                    {
                        echo "About: ".$value->cis->about."<br>";
               
                    }
                    if(!empty($value->cis->city))
                    {
                        echo "City: ".$value->cis->city."<br>";
               
                    }
                    if(!empty($value->cis->location))
                    {
                        echo "Location: ".$value->cis->location."<br>";
               
                    }
                    if(!empty($value->cis->contact_no))
                    {
                        echo "Contact No: ".$value->cis->contact_no."<br>";
               
                    }
                    if(!empty($value->cis->email))
                    {
                        echo "Email: ".$value->cis->email."<br>";

                    }
                    if(!empty($value->cis->noofworkers))
                    {
                        echo "No of workers: ".$value->cis->noofworkers."<br>";
                    }

                ?>  
            </td>
			<td class="text-center">
                <a  my-data="<?=$aw?>" cid="<?=$value->ci->id?>" cisid="<?=$value->cis->id?>" data-reveal-id="suggest_edit" class="tiny success radius button btnApproveSuggest" style="padding:0.2rem;margin:0;">Save</a>
                <a  data-reveal-id="alertconfirm" class="tiny alert radius button" style="padding:0.2rem;margin:0;">Ignore</a>
            </td>
		</tr>
   <?php } ?>
	</tbody>
</table>

</div>